package week02.day02;

import java.util.Scanner;

public class 上机练习2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int num = sc.nextInt();
        if (num%2==0){
            System.out.println(num+"为偶数");
        }
        if (num%2!=0){
            System.out.println(num+"为奇数");
        }
    }
}
